package com.probox.common.entity.vo.customerService;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.probox.common.core.enums.BuyTypeEnum;
import com.probox.common.core.enums.ProBoxServiceItemType;
import com.probox.common.core.enums.ReleaseShopTypeEnum;
import com.probox.common.core.text.Convert;
import com.probox.common.core.utils.money.MoneyUtils;
import com.probox.common.entity.domain.customer.CustomerFundDetail;
import com.probox.common.entity.utils.DictUtils;
import lombok.Data;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

@Data
public class CustomerServiceBuyRecordVo   {


    private Long customerId;

    private  String typeTab;


    private String customerName;

    private String phone;

    private String sex;

    public String getSexStr() {
        HashMap dictCacheMap = DictUtils.getDictCacheMap("customer_sex");
        return Convert.toStr(dictCacheMap.get(sex));
    }


    private String storeName;


    private String startTime;

    private String endTime;



    private String orderNo;




    private Long payByBalance;


    private Long retreatByBalance;

    private Long retreatByRedBag;

    private Long retreatByBalanceStr;

    private Long retreatByRedBagStr;

    public String getPayByBalanceStr() {
        return MoneyUtils.changeF2B(payByBalance);
    }

    private Long payByScore;

    private Long payByRedBag;

    public String getPayByRedBagStr() {
        return MoneyUtils.changeF2B(payByRedBag);
    }

    private List<CustomerServiceBuyRecordVo> childrenList;

    private Long storeUid;
    private Long orderAmount;
    public String getOrderAmountStr() {
        return MoneyUtils.changeF2B(orderAmount);
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;


    private String cardWithdrawalType;

    private String retreat;

    private List<CustomerFundDetail> fundDetailList;


}
